// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_WO_PICKITEM
// * CreateDate    : 2014-06-05 18:30:23
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:23
// * LastChanger   : 2014-06-05 18:30:23
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdWoPickitemEntity : EntityBase
    {
        public ProdWoPickitemTable TableSchema
        {
            get
            {
                return ProdWoPickitemTable.Current;
            }
		}
		
		public ProdWoPickitemEntity()
        {

        }
		
		public ProdWoPickitemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.PickId = Convert.ToString(CommonFunctions.ToObject(dr["PICK_ID"]));
			this.WoTaskId = Convert.ToString(CommonFunctions.ToObject(dr["WO_TASK_ID"]));
			this.MaterialId = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_ID"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.UnitQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNIT_QTY"]));
			this.PickingModel = Convert.ToString(CommonFunctions.ToObject(dr["PICKING_MODEL"]));
			this.NetSize = Convert.ToString(CommonFunctions.ToObject(dr["NET_SIZE"]));
			this.GrossSize = Convert.ToString(CommonFunctions.ToObject(dr["GROSS_SIZE"]));
			this.UnitWeight = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNIT_WEIGHT"]));
			this.Type = Convert.ToString(CommonFunctions.ToObject(dr["TYPE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public ProdWoPickitemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.PickId = Convert.ToString(CommonFunctions.ToObject(dr["PICK_ID"]));
			this.WoTaskId = Convert.ToString(CommonFunctions.ToObject(dr["WO_TASK_ID"]));
			this.MaterialId = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_ID"]));
			this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
			this.UnitQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNIT_QTY"]));
			this.PickingModel = Convert.ToString(CommonFunctions.ToObject(dr["PICKING_MODEL"]));
			this.NetSize = Convert.ToString(CommonFunctions.ToObject(dr["NET_SIZE"]));
			this.GrossSize = Convert.ToString(CommonFunctions.ToObject(dr["GROSS_SIZE"]));
			this.UnitWeight = Convert.ToDecimal(CommonFunctions.ToObject(dr["UNIT_WEIGHT"]));
			this.Type = Convert.ToString(CommonFunctions.ToObject(dr["TYPE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdWoPickitemTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_ID)); }
            set { SetData(ProdWoPickitemTable.C_ID, value); }
        }
		
        [DataMember]
        public string PickId
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_PICK_ID)); }
            set { SetData(ProdWoPickitemTable.C_PICK_ID, value); }
        }
		
        [DataMember]
        public string WoTaskId
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_WO_TASK_ID)); }
            set { SetData(ProdWoPickitemTable.C_WO_TASK_ID, value); }
        }
		
        [DataMember]
        public string MaterialId
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_MATERIAL_ID)); }
            set { SetData(ProdWoPickitemTable.C_MATERIAL_ID, value); }
        }
		
        [DataMember]
        public decimal Qty
        {
            get { return Convert.ToDecimal(GetData(ProdWoPickitemTable.C_QTY)); }
            set { SetData(ProdWoPickitemTable.C_QTY, value); }
        }
		
        [DataMember]
        public decimal UnitQty
        {
            get { return Convert.ToDecimal(GetData(ProdWoPickitemTable.C_UNIT_QTY)); }
            set { SetData(ProdWoPickitemTable.C_UNIT_QTY, value); }
        }
		
        [DataMember]
        public string PickingModel
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_PICKING_MODEL)); }
            set { SetData(ProdWoPickitemTable.C_PICKING_MODEL, value); }
        }
		
        [DataMember]
        public string NetSize
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_NET_SIZE)); }
            set { SetData(ProdWoPickitemTable.C_NET_SIZE, value); }
        }
		
        [DataMember]
        public string GrossSize
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_GROSS_SIZE)); }
            set { SetData(ProdWoPickitemTable.C_GROSS_SIZE, value); }
        }
		
        [DataMember]
        public decimal UnitWeight
        {
            get { return Convert.ToDecimal(GetData(ProdWoPickitemTable.C_UNIT_WEIGHT)); }
            set { SetData(ProdWoPickitemTable.C_UNIT_WEIGHT, value); }
        }
		
        [DataMember]
        public string Type
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_TYPE)); }
            set { SetData(ProdWoPickitemTable.C_TYPE, value); }
        }
		
        [DataMember]
        public string Remark
        {
            get { return Convert.ToString(GetData(ProdWoPickitemTable.C_REMARK)); }
            set { SetData(ProdWoPickitemTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

